var div = document.getElementById('divDisplay'); var clientHeight =
    div.clientHeight;
var clientWidth = div.clientWidth; div.innerHTML +=
    'clientHeight: ' + clientHeight + '<br/>';
div.innerHTML += 'clientWidth: ' + clientWidth + ' <br/>';
var clientLeft = div.clientLeft;
var clientTop = div.clientTop;
div.innerHTML += 'clientLeft: ' + clientLeft + '<br/>';
div.innerHTML += 'clientTop: ' + clientTop + ' <br/>';
var offsetHeight = div.offsetHeight;
var offsetWidth = div.offsetWidth;
div.innerHTML += 'offsetHeight: ' + offsetHeight + '<br/>';
div.innerHTML += 'offsetWidth: ' + offsetWidth + ' <br/>';
var offsetLeft = div.offsetLeft; var offsetTop = div.offsetTop;
div.innerHTML += 'offsetLeft: ' + offsetLeft + '<br/>';
div.innerHTML += 'offsetTop: ' + offsetTop + ' <br/>';
var offsetParent = div.offsetParent; div.innerHTML += 'offsetParent: ' +
    offsetParent.id + '<br/>';